<div style="float:right;padding:6px 4px 2px 2px;">
	{foreach from=$languages item="lang"}
 		{if $smarty.session.CMS.lang[$project_id] == $lang.lang_id}
			<img src="{$CMS_LIBRARY_WEB}famfamfam/flags/png/{$lang.lang_code}.png" onclick="this.blur();" border="0" />
		{/if}
	{/foreach}
</div>
<div style="float:right;"><a href="javascript:void(0);" onclick="$('#project_languages_switch_{$project_id}').toggle()"><img src="img/projectbar-arrow.gif" border="0" alt="" /></a></div>
<br style="clear:both;" />
<div id="project_languages_switch_{$project_id}" style="display:none;position:absolute;z-index:100;left:260px;width:20px;background:#D0D0D0;border-left:1px solid #B0B0B0;border-right:1px solid #B0B0B0;border-bottom:1px solid #B0B0B0;text-align:center">
	{foreach from=$languages item="lang"}
		<div style="padding:2px;display:inline;">
			<a href="javascript:void(0);" onclick="{strip}{literal}
		$('#CMS_project_tree_{/literal}{$project_id}{literal}').xTree('open',function (xtree,elements) {
			
			xajax.request(
				{
					ccdsclass : 'ccdsDefaultPlugin'
					,ccdsfun : 'changeProjectLanguage'
				},
				{
					parameters:[{project_id:{/literal}'{$project_id}',lang_id:{$lang.lang_id}{literal},opened:elements}]
				}
			);
		});
		{/literal}{/strip}"><img src="{$CMS_LIBRARY_WEB}famfamfam/flags/png/{$lang.lang_code}.png" border="0" /></a>
		</div>
	{/foreach}

</div>
